package org.example;

import org.example.config.SpringConfig;
import org.example.controller.UserController;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class ComponentScanFilterDemo {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext annotationConfigApplicationContext = new AnnotationConfigApplicationContext(SpringConfig.class);
        System.out.println(annotationConfigApplicationContext.getBean(UserController.class));
    }
}
